home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 July / CMCD0704.ISO / Software / Shareware / Comunicatii / jaeger / jaeger.exe / {app} / Tools / ToolTechnorati.py < prev    next >
Text File  |  2004-02-18  |  637b  |  34 lines

  1. #!/bin/python
  2.  
  3. """
  4. ToolTechnorati.py
  5.  
  6. David Janes
  7. BlogMatrix
  8. 2004.02.12
  9. """
  10.  
  11. import sys
  12. import urllib
  13. import Tool
  14.  
  15. class ToolTechnorati(Tool.ToolInterface):
  16.     """
  17.     The interface for your tool. Simply create an instance of this object and Jaeger
  18.     will figure it out.
  19.     """
  20.     def __init__(self):
  21.         Tool.ToolInterface.__init__(self)
  22.         
  23.     def get_label(self, selected):
  24.         return    "Technorati Cosmos"
  25.                 
  26.     def invoke(self, selected, operations):
  27.         operations.open_url("http://www.technorati.com/cosmos/links.html?rank=&url=" + \
  28.             urllib.quote(selected.url))
  29.  
  30. #
  31. # creating it will register it
  32. #
  33. ToolTechnorati()
  34.